package com.reliable.service.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author yuyantao
 * ClassName: BaseEntity
 * date: 2025/7/8 16:33
 */
@Data
public class BaseEntitys {

    /**
     * 创建人ID
     */
    @TableField(value = "create_by",fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人ID
     */
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    /**
     * 更新时间
     * yyyy-MM-dd HH:mm:ss
     */
    private Date updateTime;

    /**
     * 模块逻辑删除  0.未删除 1.删除
     */
    @ApiModelProperty(value = "模块逻辑删除  0.未删除 1.删除", position = 11)
    @TableLogic(value = "0", delval = "1")
    private Integer delFlag;
}
